
// 引入axios
import axios from './axios'

// 获取首页的轮播图
export const banners = () => {
  return axios({
    url: '/scenics/banners'
  })
}

// 登录
export const login = (data) => {
  return axios({
    method: 'post',
    url: '/accounts/login',
    data
  })
}


// 验证码
export const verification = (data) => {
  return axios({
    method: 'post',
    url: '/captchas',
    data,
  })
}


// 注册 /accounts/register
export const reginster = (data) => {
  return axios({
    method: 'post',
    url: '/accounts/register',
    data
  })
}

